<template>
  <h1>{{ res.data }}</h1>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import axios from 'axios'
export default defineComponent({
  name: 'AsyncComp',
  async setup() {
    const res = await axios.get('/data/address.json')
    return {
      res
    }
  }
})
</script>

<style scoped>
</style>